@echo off
java -jar tools/yuicompressor-2.4.7.jar scripts\core.js -o scripts\core-min.js --type js --charset utf-8
mkdir tmp

mkdir tmp\images
copy images\*.* tmp\images\

mkdir tmp\scripts
copy scripts\*.js tmp\scripts\
del tmp\scripts\core.js

mkdir tmp\styles
copy styles\*.* tmp\styles\

copy Settings.html tmp\
copy SoFurry.html tmp\
copy SoFurryLogo.png tmp\
copy Gadget.xml tmp\

cd tmp
..\tools\CabArc -r -p n ..\SoFurry.gadget *
cd ..
rmdir /S /Q tmp
